package org.check.VO;

import java.util.ArrayList;
import java.util.List;

public class DBConnVO {
	private String name="";
	private String dbtype="";
	private String driverType="";
	private String url="";
	private String user="";
	private String password="";
	private String DBuser="";
	private String poolCnt="5";
	private String version="";
	private String vpnInfo="";
	private Boolean isRoute=false;
	private List<Server> servers;

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDbtype() {
		return dbtype;
	}
	public void setDbtype(String dbtype) {
		this.dbtype = dbtype;
	}
	public String getDriverType() {
		return driverType;
	}
	public void setDriverType(String driverType) {
		this.driverType = driverType;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getDBuser() {
		return DBuser;
	}
	public void setDBuser(String dBuser) {
		DBuser = dBuser;
	}
	public String getPoolCnt() {
		return poolCnt;
	}
	public void setPoolCnt(String poolCnt) {
		this.poolCnt = poolCnt;
	}
	public Boolean getIsRoute() {
		return isRoute;
	}
	public void setIsRoute(Boolean isRoute) {
		this.isRoute = isRoute;
	}
	public List<Server> getServers() {
		return servers;
	}
	public void setServers(ArrayList<Server> servers) {
		this.servers = servers;
	}
	public Server getServer(int index) {
		return servers.get(index);
	}
	public void addServer(Server server) {
		if(null==this.servers){
			this.servers = new ArrayList<Server>();
		}
		this.servers.add(server);
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}

	public String getVpnInfo() {
		return vpnInfo;
	}
	public void setVpnInfo(String vpnInfo) {
		this.vpnInfo = vpnInfo;
	}
	
}
